#include<iostream>
#include"BigNum.h"
#include <vector>



int main(void)
{
	std::vector<char> input_buffer;
	BigNum num1,num2,result;
	BigNum* BigPtr= &num1;
	std::cout<<"please input (finish by '='):";
	char temp_input;
	while((temp_input =std::cin.get())!= '=')
	{
		input_buffer.push_back(temp_input);
		if('*' == temp_input)
		{
			BigPtr = &num2;
			continue;
		}
		BigPtr->push_front(temp_input);
	}
	for(int i = 0;i<input_buffer.size();++i)
	{
		std::cout<<input_buffer[i];
	}
	
	result = num1*num2;
	std::cout<<"="<<result<<std::endl;
	system("pause");
}